<!doctype html>
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
	language="java"%>
<%@ include file="/jsp/mobile/include/include.jsp"%>
<html lang="cn">
<head>
<%@ include file="/jsp/mobile/include/header.jsp"%>
<title>查询交易</title>
</head>
<body class="nobg">
<!-- 	<div class="head">
		<div class="auto">
			<span class="tit">查询交易</span> <a href="javascript:goBackMain();" class="ico retu"></a>
		</div>
	</div> -->
	<div class="main">
		<div class="tBm">
			<ul class="clearfix">
				<li><a href="<%=request.getContextPath()%>/mobile/index/orderquery" >收款明细</a>
				</li>
				<li><a href="#" class="cur">取款明细</a>
				</li>
			</ul>
		</div>
		<div class="sltTj" id="default">
			<div class="selTi" id="defaultQuery">
				按条件查询<i class="ico ico7"></i>
			</div>
		</div>
		<div class="sltTj" id="collspan" style="display: none">
			<div class="selCi">
				<div class="gTb clearfix" id="collspanQuery">
					<span class="tit">按条件查询</span> <span class="fr">收回<i
						class="ico ico8"></i> </span>
				</div>
				<form id="queryForm"
					action="<%=request.getContextPath()%>/mobile/index/encashquery">
					<div class="gTb">
						<span class="tit">开始日期：</span> <input type="text" class="text"
							name="beginDate"
							value="<c:out value='${encashQueryDomain.beginDate}'/>">
					</div>
					<div class="gTb">
						<span class="tit">结束日期：</span> <input type="text" class="text"
							name="endDate" value="<c:out value='${encashQueryDomain.endDate}'/>">
					</div>
					<div class="gTb">
						<span class="tit">订单金额：</span> <input type="text" class="text"
							name="encashAmt"
							value="<c:out value='${encashQueryDomain.encashAmt}'/>">
					</div>
					<div class="gTb">
		            	<span class="tit">取现方式：</span>
		                <select class="text" name="encashType" style="width:97%">
		                	<option value="">请选择</option>
		                    <option value="1">T+1取现</option>
		                    <option value="0">即时取现</option>
		                </select>
		            </div>
					<div class="sBtn">
						<a href="javascript:query();"><i class="ico ico9"></i>查询</a>
					</div>
				</form>
			</div>
		</div>

		<fmt:parseDate value="${encashQueryDomain.beginDate}" var="beginVar"
			pattern="yyyyMMdd" />
		<fmt:parseDate value="${encashQueryDomain.endDate}" var="endVar"
			pattern="yyyyMMdd" />

		<div class="seCon clearfix">
			<span class="fl"><fmt:formatDate value="${beginVar}"
					pattern="yyyy/MM/dd" />-<fmt:formatDate value="${endVar}"
					pattern="MM/dd" /> </span>
            <%--<span class="fr">累计金额：￥<fmt:formatNumber--%>
					<%--pattern="#,##0.00" value="${totalAmt}" /> </span>--%>
		</div>
		<div class="selJg">
			<c:forEach var="encashListDaily" items="${list}">
				<div class="time">
					<c:out value="${encashListDaily.encashDate}" />
				</div>
				<ul>
					<c:forEach var="encashLogModel" items="${encashListDaily.encashLogModelList}">
						<li>
							<p>
								取现金额：<i class="red"><fmt:formatNumber pattern="#,##0.00"
										value="${encashLogModel.encashAmt}" /> </i>
							</p>
							<p>
								订单号：
								<c:out value="${encashLogModel.encashId}" />
							</p>
							<p>
								取现类型：
								<c:choose>
									<c:when test="${encashLogModel.encashType == '1'}">T+1取现</c:when>
									<c:when test="${encashLogModel.encashType == '0'}">即时取现</c:when>
									<c:otherwise></c:otherwise>
								</c:choose>
							</p>
                            <p>
								结算状态：
								<c:choose>
									<c:when test="${encashLogModel.encashStatus == 'N'}">未结算</c:when>
									<c:when test="${encashLogModel.encashStatus == 'S'}">结算成功</c:when>
                                    <c:when test="${encashLogModel.encashStatus == 'F'}">结算失败</c:when>
									<c:otherwise></c:otherwise>
								</c:choose>
							</p>
							<p>
								结算单号：
								<c:out value="${encashLogModel.settleOrdId}" />
							</p> <fmt:parseDate value="${encashLogModel.settleTime}" var="encashDate"
								pattern="yyyyMMddHHmmss" />
							<p>
								结算时间：
								<fmt:formatDate value="${encashDate}" pattern="yyyy-MM-dd HH:mm:ss" />
							</p></li>
					</c:forEach>
				</ul>
			</c:forEach>
			<div class="moreJy">点击查看更多交易</div>
		</div>
	</div>

	<script type="text/javascript">
		function query() {
			$("#queryForm").submit();
		}

		$("#defaultQuery").bind("click", function() {
			$("#default").hide();
			$("#collspan").show();
		});

		$("#collspanQuery").bind("click", function() {
			$("#default").show();
			$("#collspan").hide();
		});
	</script>

</body>
</html>